﻿@model SCS.Common.Models.MembershipUser

@{
    Layout = null;
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{  
    <fieldset>
        <legend>Phụ huynh</legend>
        @Html.HiddenFor(model => model.userID)
        @Html.HiddenFor(model => model.password)
        @Html.HiddenFor(model => model.passwordSalt)
        @Html.HiddenFor(model => model.createDate)
        @Html.HiddenFor(model => model.lastPasswordChangedDate)
        @*<div class="editor-label">
            @Html.Label("Tên giáo viên:")
            @Html.LabelFor(model => model.Teachers.FirstOrDefault().teacherName)
        </div>*@
        <div class="editor-label">
            @Html.Label("Tên đăng nhập:")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.userName)
            @Html.ValidationMessageFor(model => model.userName)
        </div>
        <div class="editor-label">
            @Html.Label("Email:")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.email)
            @Html.ValidationMessageFor(model => model.email)
        </div>
        <div class="editor-label">
            @Html.Label("Trạng thái:")
        </div>
        <div class="editor-field">
            @Html.RadioButtonFor(model => model.isLockedOut, false) Hoạt động
            @Html.RadioButtonFor(model => model.isLockedOut, true, true) Vô hiệu hóa
            @Html.ValidationMessageFor(model => model.isLockedOut)
        </div>
        <br />
        <div style="float: left">
            <button type="submit" id="btnUpdate" name="Command" value="Update" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only">
                <span class="ui-button-text">Cập nhật</span></button>
            &nbsp; &nbsp;
        </div>
    </fieldset>
}